/**
 * 策略相关接口
 * */
import request from "@/request";

// 产品-策略列表
export const getStrategy = () => request.get('/api/backtest/strategy/list')

// 执行所有策略
export const getRunStrategy = () => request.get('/api/strategy/strategy_action')

// 新增策略管理
export const AddStrategy = data => request.post('/api/backtest/strategy/add', data)

// 调试策略
export const DebugStrategy = data => request.post('/api/backtest/strategy/debug', data)

// 删除策略
export const DelStrategy = data => request.get(`/api/backtest/strategy/del`, data)